<template>
  <!-- 顶部通栏 -->
  <nav>
    <app-navbar-vue />
  </nav>
  <!-- 头部组件 -->
  <header>
    <app-head-vue />
    <app-header-sticky-vue />
  </header>
  <!-- 内容容器 -->
  <div class="main">
    <router-view />
  </div>
  <!-- 底部组件 -->
  <footer>
    <app-footer-vue />
  </footer>
</template>

<script>
import appNavbarVue from "../components/app-navbar.vue";
import appHeadVue from "../components/app-header.vue";
import appHeaderStickyVue from "../components/app-header-sticky.vue";
import appFooterVue from "../components/app-footer.vue";
import { useStore } from "vuex";
export default {
  name: "Layout",
  components: {
    appNavbarVue,
    appHeadVue,
    appHeaderStickyVue,
    appFooterVue,
  },
  setup() {
    const store = useStore();
    store.dispatch("category/getList");
    return {};
  },
};
</script>
<style scoped></style>
